<template>
  <el-menu v-bind="$attrs" style="height: 100%;">
    <MenuItem v-for="(menu, index) in schema.menus.filter(item => !item.hidden)" :key="index" :menu="menu" />
  </el-menu>
</template>

<script setup>
import MenuItem from './MenuItem.vue'

defineProps({
  schema: {
    type: Object,
    required: true
  }
})
</script>
